package com.yutianran.springBoot.spider.impl;

import com.yutianran.springBoot.spider.IWriter;
import com.yutianran.springBoot.spider.Node;

import java.util.List;

public class DefaultWriter implements IWriter {
    public String write(List<Node> list) {
        StringBuilder stringBuilder = new StringBuilder();
        for (Node item : list) {
            stringBuilder.append(item.toString()).append("\n");
        }
        return stringBuilder.toString();
    }
}
